package spring.cloud.tasks.executor.name_space.executor.task.task_item;


import lombok.Getter;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;

@Slf4j
@Setter
@Getter
public class TaskItemExecuteTask implements Runnable {
    private String threadName;
    private TaskItemExecute taskItemExecute;

    public TaskItemExecuteTask(TaskItemExecute taskItemExecute) {
        this.taskItemExecute = taskItemExecute;
    }

    @Override
    public void run() {
        taskItemExecute.executeAndGetTaskItemExecuteResult();
    }
}
